package com.gpy.hospital.reception.service.impl;

import com.gpy.hospital.cms.dao.KeshiMapper;
import com.gpy.hospital.cms.pojo.Keshi;
import com.gpy.hospital.reception.service.IKeShiService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author
 * @Date 2020/2/27 21:52
 * @Desc
 **/
@Service
public class KeShiServiceImpl implements IKeShiService {

    @Autowired
    private KeshiMapper keshiMapper;

    @Override
    public List<Keshi> getKeShi() {
        List<Keshi> keshis = keshiMapper.getByRandom();
        return keshis;
    }

    @Override
    public List<Keshi> getByStatus() {
        return keshiMapper.getByStatus();
    }
}
